package razor.blade;

import javafx.application.*;
import javafx.geometry.*;
import javafx.scene.paint.*;
import javafx.stage.*;
import javafx.scene.text.*;
import javafx.scene.image.*;
import javafx.scene.shape.*;
import razor.blade.*;
import javafx.beans.binding.*;
import javafx.event.*;
import javafx.scene.*;
import javafx.scene.paint.*;
import javafx.stage.*;
import javafx.beans.property.*;
import javafx.beans.value.*;
import javafx.scene.image.*;
import javafx.scene.input.*;
import javafx.scene.shape.*;
import javafx.scene.text.*;
import javafx.geometry.*;
import tee.binding.*;

public class Test extends Application {
    public static void main(String[] args) {
	Application.launch(Test.class, args);
    }
    @Override public void start(Stage primaryStage) {
	System.out.println("test");
	UserProperties properties = new UserProperties("JavaFXKillerGUIDemo.txt");  
	final DesktopX desktop = new DesktopX();
	desktop
	    .width(properties.asNumeric("width", 600))
	    .height(properties.asNumeric("height", 400))
	    .x(properties.asNumeric("x", 0))
	    .y(properties.asNumeric("y", 0))
            .closeButtonPressed(new Task(){@Override public void doTask() {
                    System.exit(0);
                    }
                })
	    .startup(primaryStage);
    }
}
